Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODLinkSource


SetAutoUpdate

The SetAutoUpdate method sets this link-source object's update mode to automatic or manual.

void SetAutoUpdate (in ODBoolean automatic);
automatic
kODTrue to set the update mode for this link-source object to automatic and kODFalse to set it to manual.
DISCUSSION
If your part is the source part of this link-source object, after you call the ShowLinkSourceInfo method, you can call this method to set the update mode to the mode the user selected in the Link Source Info dialog box. You can also call this method if you want to implement your own link information dialog boxes.

Your part should use the new update mode to determine when to update the content of this link-source object. If the automatic parameter is true, your part should update this link-source object whenever the source content is changed. If the parameter is false, your part should update this link-source object when the user clicks the Update Now button in the Link Source Info dialog box. (Whenever your part updates this link-source object, it should also call the ContentUpdated method.)

SEE ALSO
The ODLinkSource::ContentUpdated method (page 378).
The ODLinkSource::IsAutoUpdate method (page 381).
The ODLinkSource::ShowLinkSourceInfo method (page 386).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help